import Vue from 'vue'
import Router from 'vue-router'
import Layouts from "@/components/Layouts";
import Content from "@/components/Content";
import Welcome from "@/components/Welcome";
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: "/",
      name: "Layouts",
      component: Layouts,
      redirect: "/show",
      children: [
        {
          path: "/show",
          name: "welcome",
          component: Welcome
        },
        {
          path: "/show/:id",
          name: "content",
          component: Content
        }
      ]
    }
  ]
});
